package com.rent.weixin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 微信菜单
 * </p>
 *
 * @author zn
 * @since 2025-03-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("wx_menu")
@ApiModel(value = "WxMenu对象", description = "微信菜单")
public class WxMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("菜单名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("公众号ID")
    @TableField("appid")
    private String appid;

    @ApiModelProperty("公众号密钥")
    @TableField("secert")
    private String secert;

    @ApiModelProperty("公众号token")
    @TableField("token")
    private String token;

    @ApiModelProperty("公众号key")
    @TableField("asckey")
    private String asckey;

    @ApiModelProperty("菜单1{name:”,url:”,type:1 sub:[]}")
    @TableField("menu1")
    private String menu1;

    @ApiModelProperty("菜单1{name:”,url:”,type:1 sub:[]}")
    @TableField("sub1")
    private String sub1;

    @ApiModelProperty("菜单1{name:”,url:”,type:1 sub:[]}")
    @TableField("menu2")
    private String menu2;

    @ApiModelProperty("菜单1{name:”,url:”,type:1 sub:[]}")
    @TableField("sub2")
    private String sub2;

    @ApiModelProperty("菜单1{name:”,url:”,type:1 sub:[]}")
    @TableField("menu3")
    private String menu3;

    @ApiModelProperty("菜单1{name:”,url:”,type:1 sub:[]}")
    @TableField("sub3")
    private String sub3;

    @ApiModelProperty("状态0未生成1.已生成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("生成次数")
    @TableField("gen_count")
    private Integer genCount;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("公司ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty("生成时间")
    @TableField("generate_time")
    private Date generateTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;
}
